package com.hewep.demo.nio;

import java.nio.channels.SelectionKey;

public interface ServerListener {

	void onError(String error);
	void onAccept() throws Exception;
	void onAccepted(SelectionKey key) throws Exception;
	void onRead(Request request) throws Exception;
	void onWrite(Request request, Response response) throws Exception;
}
